package org.jamin.lending.domain;

/**
 * Created by xywen on 2016/9/9.
 */
public class BJUIAjaxResult {

    private int statusCode;

    private String message;
    
    private String closeCurrent;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    
    public String getCloseCurrent() {
		return closeCurrent;
	}

	public void setCloseCurrent(String closeCurrent) {
		this.closeCurrent = closeCurrent;
	}

	public static BJUIAjaxResult createSuccess(String message){
    	BJUIAjaxResult ajaxResult = new BJUIAjaxResult();
    	ajaxResult.setStatusCode(200);
    	ajaxResult.setMessage(message);
    	return ajaxResult;
    }
    
    public static BJUIAjaxResult createFail(String message){
    	BJUIAjaxResult ajaxResult = new BJUIAjaxResult();
    	ajaxResult.setStatusCode(300);
    	ajaxResult.setMessage(message);
    	return ajaxResult;
    }
}
